26. Motion Model Probabiity I
Now we will practice implementing the motion model to determine P(location) for our Bayesian filter. We discussed the derivation of the model in **Recursive Structure
** and
Implementation Details for Motion Model
.
Recall that we derived the following recursive structure for the motion model:
and that we will implement this in the discretized form:
Let's consider again what the summation above is doing - calculating the probability that the vehicle is now at a given location, .
How is the summation doing that? It's looking at each prior location where the vehicle could have been, . Then the summation iterates over every possible prior location, . For each possible prior location in that list, , the summation yields the total probability that the vehicle really did start at that prior location and that it wound up at .
That now raises the question, how do we calculate the individual probability that the vehicle really did start at that prior location and that it wound up at , for each possible starting position ?
That's where each individual element of the summation contributes. The likelihood of starting at
and arriving at
is simply
.
We can say the same thing, using different notation and incorporating all of our knowledge about the world, by writing:
From the equation above we can see that our final position probability is the sum of n discretized motion model calculations, where each calculation is the product of the 'i'th transition probability,
,
and 'i'th belief state,
. Let's try out a single, discreet calculation.
' i ' th Motion Model Probability:
Discretized Motional Model Calculation
QUESTION:
Given a transition probability of 3.99E-1 and a belief state of 5.56E-2, what is the position probability returned by the motion model? Write the answer in scientific notation with an accuracy of two decimal places, for example 3.14E-15.
SOLUTION:
NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer
In the next concept, we will practice determining other values relevant to the motion model.